import Vue from "vue";

/**
 * 自定义隐藏指令
 */
Vue.directive("customShow",{
  inserted:function(el,binding){
    if(binding.value){
      el.style.visibility = "visible"
    }else{
      el.style.visibility = "hidden"
    }
  },
  update: function(el,binding){
    if(binding.value){
      el.style.visibility = "visible"
    }else{
      el.style.visibility = "hidden"
    }
  }
})
